package com.yyg.boot.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.util.MimeType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description 内容协商视图解析器
 * @Author 一一哥Sun
 * @Date Created in 2020/3/21
 */
@Slf4j
@Controller
public class NegotiationController {

    @GetMapping(value = "/show/{type}")
    public String showUser(@PathVariable("type") String type) {
        log.warn("type={}", type);
        return "跟一一哥学习ContentNegotiatingViewResolver!";
    }

}
